package day04;

import java.util.Scanner;

public class Demo05 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入您的积分");
        int a = scanner.nextInt();

        System.out.println("输入您的购物金额");
        double v = scanner.nextDouble();

        if (a<=2000){
           double m =v * 0.9;
            System.out.println("您的折合金额为："+m);
        }else if (a<=4000){
            double m =v * 0.8;
            System.out.println("您的折合金额为："+m);
        }else if (a<=8000){
            double m =v * 0.75;
            System.out.println("您的折合金额为："+m);
        }else {
            double m =v * 0.7;
            System.out.println("您的折合金额为："+m);
        }



    }
}
